package com.rui.service;

import com.rui.entity.Subject;

import java.util.List;

/**
 * Created by Administrator on 2017/4/14.
 */
public interface SubjectService {

    void add(Subject subject);

    void delete(Integer id);

    void update(Subject subject);

    Subject findOne(Integer id);

    List<Subject> findSubjects(String name,Integer pageSize,Integer pageIndex);

    Integer findTotalPage(String name,Integer pageSize);

    Subject findByName(String name);

    List<Subject> findSubjects(String name,Integer id);
}
